package com.hsc.springboot05web01tomcataddservlets.controller;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author
 * @date 2025-07-29
 * @Description 测试通过SpringBoot项目添加servlet
 *
 */
@Slf4j
public class TestServlet extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        log.info("-----------servlet--------------");
        resp.getWriter().write("hello world");
    }
}
